﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class TSZA02 
    {
       
        public TSZA02()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return; 
            MV = new VZABED();
            this.DataContext = MV; 
            InitializeComponent();
            IsEdit = false;
         }  
        
        public override void LOADALL()
        {
            dwData = TBMain.NewRow();
            dwData["ZABMANDANT"] = app.Mandant;
            dwData["ZABSPRACHKZ"] = "V ";
            SResult = ((VZABED)MV).QueryZABED(dwData, -1);
            foreach (DataRow row in SResult.Tables[0].Rows)
            {
                row["DES"] = Helpers.Helper.GetGB2312Value(row["ZABBEZ"].ToString().Trim());
            }
            Locate("KEY", ORDERNUM);
            MergeData(SResult,false); 
        } 
      
    }
}
